nav {
    height: 53px;
    min-height: 50px;
    width: 100%;
    top: 0;
    left: 0;
    position: fixed;
    z-index: 800;
    font-size: 14px;
    color: #fff;
    background: #fff;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 3px 2px -2px rgba(200,200,200,0.2);

    //导航居中容器
    .header-inner {
        height: 53px;
        width: 1002px;
        box-sizing: border-box;
        position: relative;
        margin: 0 auto;

        //导航logo
        .header-logo {
            float: left;
            margin-right: 20px;

            a {
                display: block;
                width: 80px;
                height: 50px;
                background-size: 80px 23px;
                background-image: url(/public/images/logo.png);
                background-repeat: no-repeat;
                background-position: center center;

                span {
                    display: none;
                }
            }
        }

        //导航子项
        .nav-item {
            font-size: 14px;
            font-weight: 500;
            color: #666;
            line-height: 52px;
            height: 52px;
            float: left;
            padding: 0 10px;
            box-sizing: border-box;

            a { 
                display: inline-block;
                width: 100%;
                height: 100%;
            }

            //选中
            &.selected {
                color: #b92b27 !important;
                opacity: 1;
                border-bottom: 2px solid #b92b27;

                .site_nav_icon-fill {
                    fill: #b92b27;
                }
            }

            //鼠标移动
            &:hover {
                opacity: 1;
                text-decoration: none;
                background-color: #f7f7f7;
            }

            //元素的图标
            .nav-item-icon {
                font-size: 14px;
                font-weight: 500;
                color: #666;
                line-height: 52px;

                svg {
                    width: 24px;
                    height: 23px;
                    margin-right: 0px;
                    margin-bottom: -6px;
                    display: inline-block;
                    background-size: contain;
                }
            }
        }

        //导航按钮项
        .nav-btn-item {
            height: 52px;
            float: right;
            margin-left: 10px;
            padding-top: 12px;
            box-sizing: border-box;
        }

        //导航搜索框
        .nav-search-item {
            padding-top: 12px;
            float: right;
            margin-left: 20px;
            position: relative;

            .last-keywords {
                font-size: 12px;
                top: 18px;
                position: absolute;
                right: 10px;
                display: block;
                color: #4d586d;
                font-weight: bold;

                span.title {
                    display: block;
                    float: left;
                }

                a {
                    display: inline-block;
                    color: #4d586d;
                    transition: all .3s;
                    max-width: 100px;
                    overflow: hidden;
                    text-overflow:ellipsis;
                    white-space:nowrap;

                    &:hover {
                        color: #b92b27;
                        text-decoration: underline;
                    }
                }
            }

            input {
                border: 1px solid #e2e2e2;
                border-radius: 4px;
                padding: 3px 8px;
                padding-left: 26px;
                background: url(/public/images/jscmsSearch.png) no-repeat 8px center;
                background-size: 13px;
                box-shadow: inset 0 1px 1px rgba(200,200,200,0.3);
                box-sizing: border-box;
                font-size: 15px;
                line-height: 1.4;
                -webkit-font-smoothing: antialiased;
                display: block;
                width: 550px;
            }            
        }
    }
}

@media screen and (max-width:900px) {
    nav {
        .header-inner {
            width: 100%;

            .nav-btn-item {
                display: none;
            }
    
            .nav-item {
                display: none;
            }
    
            .header-logo {
                margin-left: 10px;
                margin-right: 0px;
            }

            //导航搜索框
            .nav-search-item {
                padding-top: 12px;
                float: right;
                margin-left: 0px;
                position: relative;
                margin-right: 10px;
                width: calc(100% - 120px);
                
                .last-keywords {
                    display: none;
                }

                input {
                    width: 100%;
                }            
            }
        }
    }

}